package cn.stazxr.exception;

import java.io.Serial;
import java.util.Arrays;

/**
 * @author talentestors
 * @version 1.0
 * @since 2025.11.02
 **/
public class PermissionNeedHasAndPermissionException extends RoleAndPermissionException {

	@Serial
	private static final long serialVersionUID = -5881529774099373841L;

	public PermissionNeedHasAndPermissionException(String... roles) {
		super("您没有对应的权限: " + Arrays.toString(roles));
		this.requires = Arrays.asList(roles);
	}
}
